#include "STC15F2K60S2.H"
#include "intrins.h"
#include "main.h"
extern u16 paulse_count;
extern u8 freq_smg[8];
extern u8 led_choose;
extern bit over_flag;

		
void feq_display(void)
{
		if(over_flag)
	{
	over_flag=0;
	freq_smg[0]=smg_du[paulse_count/10000];
	freq_smg[1]=smg_du[paulse_count/1000%10];
	freq_smg[2]=smg_du[paulse_count/100%10];
	freq_smg[3]=smg_du[paulse_count/10%10];
	freq_smg[4]=smg_du[paulse_count%10];
	paulse_count=0;
	TR0=1;
	TR1=1;
	ET0=1;
	ET1=1;
	}
	
}